package cn.kin.dao;

import java.util.Date;
import java.util.List;

import org.apache.ibatis.annotations.Param;

import cn.kin.pojo.Timetables;

public interface TimetablesMapper {
	//删除课程表
    int deleteByPrimaryKey(Integer id);
    
    //修改课程表
    int updateByTimetables(Timetables timetables);
    
    //新建本周/下周课程表
    int insertTimetables(@Param("classID")Integer classID,@Param("next")Integer next);
    
    //根据班级查询本周/下周课程表
    List<Timetables> selectByClass(@Param("classID")Integer classID,@Param("next")Integer next);
    
    //删除本周之前的课程表
    int deleteByDate();
    
    //根据班级删除课程表
    int deleteByClass(@Param("classID")Integer classID);
}
